package com.gt.pojo.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Borrow implements Serializable {

    /**
     * 1借阅中,2已归还3续借中4续借审核中5归还审核中
     */
    //借阅中
    public static final Integer BORROWING = 1;

    //已归还
    public static final Integer RETURNED = 2;
    //续借中
    public static final Integer RENEWING = 3;
    //续借审核中
    public static final Integer RENEWAL_UNDER_REVIEW = 4;

    //归还审核中
    public static final Integer RETURNING_FOR_APPROVAL = 5;
    //审核通过
    public static final Integer APPROVED = 5;
    //异常
    public static final Integer ERROR = 6;
    private static final long serialVersionUID = 1L;
    private Long id;

    private Long userId;

    private Long bookId;

    private String name;

    private Integer status;

    private String errorReason;

    private LocalDateTime startTime;

    private LocalDateTime endTime;

}
